# Union 类型注解
# 语法:Union[类型,类型,...]

from typing import Union

# 演示 Union 联合类型注解
my_list:list[Union[int,str]] = [1,2,"it_xjd","it_cast"]
def func(data:Union[int,str]) -> Union[int,str]:
    pass
func()